package com.mqb;

import org.springframework.web.bind.annotation.*;

/**
 * @author mqb
 * @date 2021/4/4 16:19
 */
@RestController
public class HelloController {
    @RequestMapping(value = "/hello/{id}")
    public String hello(@PathVariable Integer id, @MatrixVariable String name) {
        System.out.println("id = " + id);
        System.out.println("name = " + name);
        return "hello";
    }

    @GetMapping("/test")
    public String test() {
        return "test";
    }
}
